package com.it.office.common;

public class JsonResult<B> {
    /**
     * 状态
     */
    private int status;

    /**
     * 返回的信息
     */
    private String msg;

    /**
     * 数据
     */
    private B body;



    public JsonResult() {

    }

    public JsonResult(B body) {
        this.body = body;
        this.status = 1;
    }

    public JsonResult(int status,String msg) {
        this.status = status;
        this.msg = msg;
    }

    public JsonResult(int status,String msg, B body) {
        this.status = status;
        this.msg = msg;
        this.body = body;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public B getBody() {
        return body;
    }

    public void setBody(B body) {
        this.body = body;
    }
}